import request from '@/router/axios';
// 店铺详情
export const storeDetailInfo = (storeId) => {
  return request({
    url: '/base/sellerStore/storeDetailInfo',
    method: 'post',
    meta:{
      isSerialize:true
    },
    data: {storeId}
  })
}

export const getList = () => {
  return request({
    url: '/cms/sellerPageInfo/list',
    method: 'post',
  })
}

export const update = (row) => {
  return request({
    url: '/cms/sellerPageInfo/editItem',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: row
  })
}

export const getDetail = (id) => {
  return request({
    url: '/cms/pageInfo/detail',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      id,
    }
  })
}
//审核店铺
export const editStoreItem = (id,storeStatus) => {
  return request({
    url: '/base/sellerStore/editItem',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data:{
      id,
      storeStatus
    }
  })
}

